package bupt.xixi.exception;

import bupt.xixi.enumeration.RpcError;

public class RpcException extends RuntimeException {
    /**
     *
     */
    private static final long serialVersionUID = -5317394234495222187L;

    public RpcException(RpcError error, String detail) {
        super(error.getMessage() + ": " + detail);
    }

    public RpcException(String message, Throwable cause) {
        super(message, cause);
    }

    public RpcException(RpcError error) {
        super(error.getMessage());
    }
}
